<!DOCTYPE html>
<!--[if IE 7]>    <html class="no-js ie7 ie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 ie" lang="en"> <![endif]-->
<!--[if IE 9]>    <html class="no-js ie9 ie" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
	<head>
		<meta charset="utf-8" />
		<title>${webName}_高效智能的Hadoop在线学习平台</title>
		<meta name="description" content="" />
		<meta name="author" content="HuangBQ | ${wwwRoot}" />	
		<#include "inc/head-common.ftl">	
	</head>
	<body>	
		<#include "inc/header.ftl">
		
		<!-- Main content -->
		<div class="container" role="main">
		
			<ul class="breadcrumb">
				<li><a href="${wwwRoot}"><span class="icon-home"></span> ${wwwName}</a></li>
				<li><a href="${webRoot}">${webName}</a></li>
				<li class="active">学习中心</li>
			</ul>
		
			<!-- 今日任务列表 -->
			<div class="hero-unit blow todaytask">
				<#assign oknum=0/>
				<#assign leftnum=0/>
				<#list taskList as task>
				<#if task.state == 3>
					<#assign oknum = oknum + 1/>
				    <h1 class="ok"><span class="icon-ok"></span> ${task.name}</h1>
					<p>${task.description}<button class="btn btn-basic btn-wuxia" onclick="location.href='task/execute/${task.taskid?c}.do'">
					<#if (task.systaskid > 800) >
						<#if (task.systaskid < 900) >
						现在去测测
						<#else>
						现在去看看
						</#if>
					<#else>
						学完了，再学一遍
					</#if> 					
					</button></p>
				<#else>
					<#assign leftnum = leftnum + 1/>
					<h1>${task.name}</h1>
					<p>${task.description}<button class="btn btn-wuxia
						<#if Session["dh_skin"] == "red">btn-danger</#if>
						<#if Session["dh_skin"] == "orange">btn-warning</#if>
						<#if Session["dh_skin"] == "green">btn-success</#if>
						<#if Session["dh_skin"] == "purple"></#if>
						<#if Session["dh_skin"] == "blue">btn-primary</#if>
						<#if Session["dh_skin"] == "dark">btn-inverse</#if>
						" onclick="location.href='task/execute/${task.taskid?c}.do'">
						
					<#if (task.systaskid > 800) >
						<#if (task.systaskid < 900) >
						现在去测测
						<#else>
						现在去看看
						</#if>
					<#else>
						现在去学习
					</#if>
						</button></p>
				</#if>
				<#if task_has_next><p>&nbsp;</p></#if>				
				</#list>
				
				<#if leftnum == 0>
					<p><br/></p>
					<div class="alert alert-success">
						<img src="${uploadRoot}avatar/default.png" alt="小讲" /> 
						<#if oknum == 0>
							<strong><code>今天没学习任务哦</code></strong> 小讲建议你 <a href="${webRoot}progress.do">复习一下所学内容</a>，或者 <a href="${webRoot}qa.do">逛逛技术问答</a>，或者 <a href="${webRoot}ext.do">去这里扩展视野</a>！
						<#else>
							<strong><code>太棒了!</code></strong> 你已经完成了今天的所有学习任务。小讲建议你复习一下所学内容，明天再来学习后面的内容，继续加油哦！
						</#if>
					</div>
				</#if>
			</div>
			<!-- /今日任务列表 -->
			
			<!-- 勋章 -->
			<div class="content">
				<!--div class="page-header">
					<h1><span class="icon-star"></span> 勋章</h1>
					<span class="loading" title="Loading, please wait&hellip;">Loading&hellip;</span>
				</div-->
				
				<!-- Page container -->
				<div class="page-container">
				
					<!-- Grid row -->
					<div class="row">

						<article class="span12">
							<div class="nav-secondary">
								<nav>
									<ul>
										<li <#if Session["dh_medal"][0..0] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="连续学习1小时以上"><span class="icon-eye-open"></span>全神贯注</a></li>
										<li <#if Session["dh_medal"][1..1] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="连续5天登录《Hadoop大讲台》学习"><span class="icon-tasks"></span>坚持不懈</a></li>
										<li <#if Session["dh_medal"][2..2] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="训练日达10个以上"><span class="icon-leaf"></span>积极进取</a></li>																			
										<li <#if Session["dh_medal"][3..3] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="训练日达20个以上，且训练时长超过30小时"><span class="icon-fire"></span>百折不挠</a></li>	
										<li <#if Session["dh_medal"][4..4] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="完成初中高级阶段实战项目各2个以上，并完成最后的综合实践项目"><span class="icon-trophy"></span>硕果累累</a></li>												
										<li <#if Session["dh_medal"][5..5] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="最近7日在技术问答区提过问题"><span class="icon-question-sign"></span>不耻下问</a></li>
										<li <#if Session["dh_medal"][6..6] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="最近7日在技术问答区回答过别人的问题"><span class="icon-heart"></span>助人为乐</a><!--span class="badge badge-inverse">已帮5个童鞋</span--></li>
										<li <#if Session["dh_medal"][7..7] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="表现突出被评选为榜样学员"><span class="icon-star"></span>榜样之星</a></li>
										<li <#if Session["dh_medal"][8..8] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="给大讲台提过意见并被采纳"><span class="icon-magic"></span>意见领袖</a></li>
										<li <#if Session["dh_medal"][9..9] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="在大讲台登记就业信息的用户"><span class="icon-flag"></span>就业之星</a></li>
										<li <#if Session["dh_medal"][10..10] == "1"> class="active"</#if>><a class="wuxify-me" href="javascript:void(0)" title="成功推荐2人以上进入大讲台学习"><span class="icon-share"></span>推广达人</a><!--span class="badge badge-inverse">6</span--></li>
									</ul>
								</nav>
							</div>
						</article>
						
					</div>
					<!-- /Grid row -->
					
				</div>
				<!-- /Page container -->
				
			</div>
			<!-- /勋章 -->
			
		</div>
		<!-- /Main content -->
		
		<#include "inc/footer.ftl">
</body>
</html>
